import Vue from "vue";
import App from "./App.vue";
import router from "@/router";
import store from "@/store";
import "../public/css/iconfont.css";
import VueLazyload from "vue-lazyload";
import rabbit from "@/assets/rabbit.jpeg";
// 当安装插件时，提供一个全局指令 v-lazy
Vue.use(VueLazyload, {
  loading: rabbit, //如果图片没有请求回来 显示的默认图片,
});
Vue.config.productionTip = false;
new Vue({
  // 在挂载之前声明$bus等于vm
  beforeMount() {
    Vue.prototype.$bus = this;
  },
  render: (h) => h(App),
  router,
  store,
}).$mount("#app");
